<% ad = get_col_ads %>
<% unless ad.nil? %>
  <%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/>
<% end %>
<%if get_user_type == '0'%><%= link_to "收藏书签 hg3000.cn",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%="<br/>"%><%end%>
<% if @img_style == '1' %>
  预览:<%= "文字"%><%= "/"%><%= link_to "图文",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => 2,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "千变",:controller => 'change', :action => 'show',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn,:col_id=>@col.id %>
  <%=  "<br/>" %>
  <%if @c_st == 1%>
    <%= "点击排行"%><%= "|"%><%= link_to "最新点击",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:c_st=>2,:cn=>my_cn %>
  <%else%>
    <%= link_to "点击排行",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:c_st=>1,:cn=>my_cn %><%= "|"%><%= "最新点击"%>
  <%end%><%=  "<br/>" %>
  <% @resouces.each_with_index do |resource,res_index| %>
    <%
    if params[:page].to_i == 0
      res_index = res_index + 1
    else
      res_index = res_index + 1 + (params[:page].to_i - 1)*$res_per_page_word
    end
  %>
    <% get_pic_num(resource) %>
    <%= link_to  res_index.to_s+"." + resource.name+"[#{@pic_size}P]",
      :controller => 'col',
      :action => 'img_style_to',:resource => resource,:sid=>my_sid,:page_for => @page_for,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
    <%=  "<br/>" %>
  <% end %>
<% else %>
  预览:<%= link_to "文字",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => 1,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%= "/"%><%= "图文"%>.<%= link_to "千变",:controller => 'change', :action => 'show',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn,:col_id=>@col.id %>
  <%=  "<br/>" %>
  <%if @c_st == 1%>
    <%= "点击排行"%><%= "|"%><%= link_to "最新点击",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:c_st=>2,:cn=>my_cn %>
  <%else%>
    <%= link_to "点击排行",:controller => 'col', :action => 'show',:id => @col.id,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:c_st=>1,:cn=>my_cn %><%= "|"%><%= "最新点击"%>
  <%end%><%=  "<br/>" %>
  <% @resouces.each_with_index do |resource,res_index| %>
    <% res_index = res_index + 1 %>
    <% get_resource_pagin_for_show(resource,$small) %>
    <% @img_arry.each_with_index  do |img_src,index|   %>
      <%= link_to image_tag(img_src,:alt => "正在打开.请稍侯") ,
        :controller => 'col',
        :action => 'img_style_to',:id => index,:resource => resource,:sid=>my_sid,:page_for => @page_for,:go_page =>@go_page,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
      <%="<br/>"%>
    <% end %>
    <%= link_to resource.name+"[#{get_pic_num resource}P]" ,
      :controller => 'col',
      :action => 'img_style_to',:resource => resource,:sid=>my_sid,:page_for => @page_for,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><%=  "<br/>" %>
  <% end %>
<% end %>
<%if @c_st == 1%>
  <%= will_paginate @resouces,:type => 'wml',:params => {:sid => my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn} %>
  <% if @resouces.total_pages > 1 %>
    <input type='text' format='*N' size='2' name='jp' />
    <anchor>
      跳页<go method='get' href='/col/show'>
        <postfield name='jump_page' value='$(jp)'/>
        <postfield name='sid' value='<%= my_sid %>'/>
        <postfield name='total_pages' value='<%= @resouces.total_pages %>'/>
        <postfield name='col_id' value='<%= @resouces[0].col_id %>'/>
        <postfield name='page_for' value='<%= nil %>'/>
        <postfield name='go_page' value='<%= @go_page %>'/>
        <postfield name='img_style' value='<%= @img_style %>'/>
        <postfield name='pp_style' value='<%= @pp_style %>'/>
        <postfield name='pp_num' value='<%= @pp_num %>'/>
        <postfield name='cn' value='<%=my_cn%>'/>
      </go>
    </anchor>
    <br/>
    <%= page_entries_info @resouces,:type => 'wml',:is_img => false %>
  <% end %>
<%end%>
